﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Shared/Site.master" AutoEventWireup="true" CodeFile="CMHasReportOfBank.aspx.cs" Inherits="View_CashManager_CMHasReportOfBank" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" Runat="Server">
    Giấy báo có (thu) của ngân hàng
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2007"/>
    <p style="font-family: Calibri; text-align: center;">
		    <strong style="font-size: 20px; text-align: center;">GIẤY BÁO CÓ (THU) CỦA NGÂN HÀNG</strong></p>

    <div class="buttonleft">
        <button ID="bCMHRAddNew" style="width: 200px" onclick="OpenSubWindow('../CashManager/CMAEHasReportOfBank.aspx', 'CMHasReportAEWD'); return false;"> Tạo mới giấy báo</button>
        <button ID="bCMHRDelete" style="width: 200px"> Xóa giấy báo</button>
    </div>
    <br />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="grCMHRInfo">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grCMHRInfo" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

        <telerik:RadGrid runat="server" ID="grCMHRInfo"
            OnNeedDataSource="grCMHRInfo_NeedDataSource" OnPreRender="grCMHRInfo_PreRender" OnInit="grCMHRInfo_Init"
            AllowSorting="True" AllowFilteringByColumn="True" PageSize="5" AllowPaging="True"
            AutoGenerateColumns="False" AllowMultiRowSelection="true" Skin="Vista">
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id">
                <PagerStyle Mode="NumericPages"/>
                <Columns>
                    <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn"/>
                    
                    <telerik:GridDateTimeColumn DataField="VoucherDate" HeaderText="Ngày CT" FilterControlWidth="100px"
                    DataFormatString="{0:dd/MM/yyyy}" PickerType="DatePicker" ShowFilterIcon="true"/>
                    
                    <telerik:GridBoundColumn DataField="VoucherNumber" HeaderText="Số chứng từ" FilterControlWidth="100px"
                    DataType="System.String" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
                    
                    <telerik:GridBoundColumn DataField="Total" HeaderText="Tổng phát sinh" FilterControlWidth="100px"
                    DataType="System.Double" DataFormatString="{0:###,###,## VND}" ShowFilterIcon="true"/>
                    
                    <telerik:GridBoundColumn DataField="Code" HeaderText="Mã khách"
                    DataType="System.String" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
                    
                    <telerik:GridBoundColumn DataField="UFullName" HeaderText="Tên khách hàng" FilterControlWidth="100px"
                    DataType="System.String" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
                    
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Đơn vị cơ sở"
                    DataType="System.String" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
                    
                    <telerik:GridBoundColumn DataField="FullName" HeaderText="Người cập nhập" FilterControlWidth="100px"
                    DataType="System.String" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/>
                    
                    <telerik:GridDateTimeColumn DataField="RegistedDate" HeaderText="Ngày cấp" FilterControlWidth="120px"
                    DataFormatString="{0:dd/MM/yyyy}" PickerType="DatePicker" ShowFilterIcon="true"/>
                </Columns>
                <PagerStyle Mode="NumericPages" />
            </MasterTableView>
            <ClientSettings>
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" />
            </ClientSettings>
        </telerik:RadGrid>
</asp:Content>

